<div id="menuleft">
    <div class="category-header-right">
        <div class="category-header-left">
            <div class="category-header-bg">
                <p>Sản phẩm khuyến mại</p>
            </div>
        </div>
    </div>    
    <div class="panel-top-right"><div class="panel-top-left"><div class="panel-top-bg"></div></div></div>
    <div id="menu-body">                   
        <div id="menu-body-top">
        <div id="menu-body-bottom">
			<marquee direction="up" scrolldelay="1" scrollamount="2" onmouseover="stop();" onmouseout="start();">
		<?
			$rs = $db->query("SELECT * FROM ".$prefix."sanpham WHERE t_khuyenmai = 1 AND t_hienthi = 1 ORDER BY t_id DESC");
			$is = 0;
			while($row = $db->fetch_array($rs)){
			$is++;
			$t_id = $row[t_id];
			$t_nguoidang = $row[t_nguoidang];
			$t_ten_nguoidang = tenNguoiDung($t_nguoidang);
			$t_tieude = $myString->unQuote(stripslashes($row[t_tieude]));
			$t_giaban = showprice($row[t_giaban]);
			$t_loaitien = loadLoaiTien($row[t_loaitien]);
			$t_hinhanh = $PathThumbFile . $row[t_hinhanh];
		?>
		<style>
			.table2 td {
				padding:2px;
			}
		</style>
				<div <? if($is != $db->num_rows($rs)){?> style="border-bottom:1px solid #FFCC66; padding:5px;" <? } ?>>
					<table class="table2" cellpadding="" cellspacing="0" border="0" width="99%">
						<tr>
							<td width="19%" rowspan="3"><div align="center"><a href="<?=$root?>/chi-tiet-san-pham/<?=$t_id?>/<?=$myString->vietdecode($t_tieude)?>"><img src="<?=$root?>/<?=$t_hinhanh?>" onerror="this.src='<?=$root?>/themes/images/noimg.jpg';" border="0" width="60" height="60" style="border:1px solid #EEEEEE;"/></a></div></td>
							<td width="81%"><a href="<?=$root?>/chi-tiet-san-pham/<?=$t_id?>/<?=$myString->vietdecode($t_tieude)?>" class="product-name" title="<?=$t_tieude?>"><?=$myString->cutString2($t_tieude,80);?></a></td>
						</tr>
						
						<tr>
							<td>Shop: <a href="<?=$root?>/shop-<?=$t_nguoidang?>/<?=tenNguoiDung2($t_nguoidang)?>" class="popup-profile"><?=$t_ten_nguoidang?></a></td>
						</tr>
						
						<tr>
							<td><blink><span style="font-weight:bold; color:#FF0000"><?=$t_giaban?> <?=$t_loaitien?></span></blink></td>
						</tr>
					</table>
				</div>
			<? } ?>
			</marquee>
        </div>
        </div>         
    </div>
    <div class="panel-bottom-right">
        <div class="panel-bottom-left">
            <div class="panel-bottom-bg"></div>
        </div>
    </div>    
</div>